﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace YY.Admin.ViewModels
{
    /// <summary>
    /// 单个标签的数据模型
    /// </summary>
    public class TabItemModel : BindableBase
    {
        public TabItemModel()
        {
            Id = $"TabRegion_{Guid.NewGuid():N}"; // 保证唯一
        }

        private string _id;
        public string Id
        {
            get => _id;
            set => SetProperty(ref _id, value);
        }

        private string _header = string.Empty;
        public string Header
        {
            get => _header;
            set => SetProperty(ref _header, value);
        }

        private string _icon = string.Empty;
        public string Icon
        {
            get => _icon;
            set => SetProperty(ref _icon, value);
        }

        private string _viewName = string.Empty;
        public string ViewName
        {
            get => _viewName;
            set => SetProperty(ref _viewName, value);
        }

        private bool _isSelected;
        public bool IsSelected
        {
            get => _isSelected;
            set => SetProperty(ref _isSelected, value);
        }

        public ICommand CloseCommand { get; set; }
    }

}
